﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NC.Cather
{
    public class Target:BaseEntity
    {
        public Target()
        {
            this.List=new HashSet<UrlList>();
            this.ContentExtendParamses=new HashSet<ContentExtendParams>();
        }
        /// <summary>
        /// 网站地址
        /// </summary>
        [Required(ErrorMessage = "网站地址必须填写")]
        public string Url { get; set; }
        /// <summary>
        /// 网站名称
        /// </summary>
        [Required(ErrorMessage = "网站名称必须填写")]
        public string Name { get; set; }
        /// <summary>
        /// 网站图标
        /// </summary>
        public string FavirateIco { get; set; }
        /// <summary>
        /// 网站描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 项目唯一标识符，用户跟新用户的AccessTokenId
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// 网站状态
        /// </summary>
        public TargetStatus Status { get; set; }
        /// <summary>
        /// 列表页面
        /// </summary>
        public virtual ICollection<UrlList> List { get; set; }
        /// <summary>
        /// 文章详细内容扩展字段
        /// </summary>
        public virtual ICollection<ContentParams> ContentParamses { get; set; }
        public virtual ICollection<ContentExtendParams> ContentExtendParamses { get; set; }
    }
}
